/*
 * Copyright (C) 2017 Zhejiang BYCDAO Technology CO.,LTD.
 * All rights reserved.
 * Official Web Site: http://www.bycdao.com.
 * Developer Web Site: http://open.bycdao.com.
 */
package com.xiaominfo.swagger.service.order.common;

import io.swagger.annotations.ApiModelProperty;

/***
 *
 * @since:swagger-bootstrap-ui-demo 1.0
 * @author <a href="mailto:xiaoymin@foxmail.com">xiaoymin@foxmail.com</a> 2017/08/21 16:41
 */
public class Rest<T>
{
    @ApiModelProperty(value = "是否成功")
    private boolean success = true;
    
    @ApiModelProperty(value = "返回对象")
    private T data;
    
    @ApiModelProperty(value = "错误编号")
    private Integer errCode;
    
    @ApiModelProperty(value = "错误信息")
    private String message;
    
    public boolean isSuccess()
    {
        return success;
    }
    
    public void setSuccess(boolean success)
    {
        this.success = success;
    }
    
    public T getData()
    {
        return data;
    }
    
    public void setData(T data)
    {
        this.data = data;
    }
    
    public Integer getErrCode()
    {
        return errCode;
    }
    
    public void setErrCode(Integer errCode)
    {
        this.errCode = errCode;
    }
    
    public String getMessage()
    {
        return message;
    }
    
    public void setMessage(String message)
    {
        this.message = message;
    }
}
